package com.zaimokuza.cn.entity.log;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author zaimokuza
 */
@ApiModel("请求日志")
@Data
@ToString
public class RequestLog {

    @ApiModelProperty("请求路径")
    private String url;
    @ApiModelProperty("请求方式")
    private String httpMethod;
    @ApiModelProperty("请求方IP地址")
    private String remoteIp;
    @ApiModelProperty("请求时间")
    private String requestTime;
    @ApiModelProperty("类名")
    private String className;
    @ApiModelProperty("方法名")
    private String methodName;
    @ApiModelProperty("参数")
    private String params;
    @ApiModelProperty("请求成功与否标识")
    private Boolean status;
    @ApiModelProperty("异常信息")
    private String errorMsg;
    @ApiModelProperty("总耗时，单位ms")
    private long totalMs;

}
